﻿using System;
using LinqToDB.Mapping;

namespace ggHD.Domain.BizObj
{
    [Table(Schema = "dbo", Name = "TicketContent")]
    public partial class TicketContent
    {
        [PrimaryKey, Identity]
        public long Id { get; set; } // bigint
        [Column, NotNull]
        public long TicketHeaderId { get; set; } // bigint
        [Column, Nullable]
        public string TextContent { get; set; } // nvarchar(-1)
        [Column, NotNull]
        public DateTime DateCreate { get; set; } // datetime

        #region Associations

        /// <summary>
        /// FK__TicketCon__Ticke__57DD0BE4
        /// </summary>
        [Association(ThisKey = "TicketHeaderId", OtherKey = "Id", CanBeNull = false)]
        public TicketHeader TicketConTicke57DD0BE4 { get; set; }

        #endregion
    }
}